package com.cheng.main;

import javax.swing.UIManager;

import com.cheng.frame.InputInfoFrame;
import com.cheng.frame.LoadingFrame;



public class Main {
	private static final String PREFERRED_LOOK_AND_FEEL = "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel";
	private static void installLnF() {
		try {
			String lnfClassname = PREFERRED_LOOK_AND_FEEL;
			if (lnfClassname == null)
				lnfClassname = UIManager.getCrossPlatformLookAndFeelClassName();
			UIManager.setLookAndFeel(lnfClassname);
		} catch (Exception e) {
			System.err.println("Cannot install " + PREFERRED_LOOK_AND_FEEL
					+ " on this platform:" + e.getMessage());
		}
	}
	
	public static void main(String[] args) {
		installLnF();
		Thread t = new Thread(new LoadingFrame());
		t.start();
		try {
			t.sleep(1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		InputInfoFrame.instance().setVisible(true);
	}
}
